<div class="page">
<a href="<?php echo $this->pagerUrl.'?page=1'.$this->pagerPara;?>">首页</a>
<a href="<?php echo $this->pagerUrl.'?page='.($this->page-1).$this->pagerPara;?>">上一页</a>

<?php
	//echo Zend_Registry::get('config');
	if($this->pagecount<=8)
	{
	    $begin = 1;
	    $end = $this->pagecount;//显示8页
	}
	else 
	{
	    if($this->pagecount-$this->page+1<=8)
	    {
	        $begin = $this->pagecount-7;
	        $end = $this->pagecount;
	    }
	    else 
	    {
	        $begin = $this->page;
	        $end = $this->page + 7;
	    }
	    
	}
	for($i = $begin;$i<=$end;$i++)
	{
	    if($i==$this->page)echo $i;//本页页数没有超链接
	 	else 
	 	{
	 	    echo '<a href="';
	 	    echo $this->pagerUrl.'?page='.$i.$this->pagerPara.'"';
	 	    echo '>'.$i.'</a>';
	 	}
	} 
?>
<a href="<?php echo $this->pagerUrl.'?page='.($this->page+1).$this->pagerPara;?>"> 下一页 </a>  
<a href="<?php echo $this->pagerUrl.'?page='.$this->pagecount.$this->pagerPara;?>">尾页</a>
</div>